package com.tenement.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author BertXie
 * @since 1.0.1
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_properties")
public class Properties implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Generator, value = "snowFlakeId")
    private Long id;

    private Long userId;

    private String propertyName;

    private String communityName;

    private String address;

    private BigDecimal latitude;

    private BigDecimal longitude;

    private String contactPerson;

    private String phoneNumber;

    private String email;

    private BigDecimal propertyFee;

    private BigDecimal waterFee;

    private BigDecimal gasFee;

    private BigDecimal electricityFee;

    private String communityDescription;

    private Date establishedDate;

    @Column(onInsertValue = "now()")
    private Timestamp createTime;

    @Column(onUpdateValue = "now()")
    private Timestamp updateTime;

    private String propertyType;

    private String region;

    private BigDecimal buildingArea;


    @Column(ignore = true)
    private Long value;

    @Column(ignore = true)
    private String label;

}
